//package com.shebei.api.equipment_api_test.dubbo.dubboClient;
//
//
//import com.alibaba.fastjson.JSONObject;
//
//import com.uniubi.cloud.record.core.model.internal.util.GuidUtil;
//import com.uniubi.cloud.record.facade.api.event.EventRecordFacade;
//import com.uniubi.cloud.record.facade.request.event.EventRecordRequest;
//import org.springframework.context.ApplicationContext;
//import org.springframework.context.support.ClassPathXmlApplicationContext;
//import org.springframework.stereotype.Component;
//
//import java.util.List;
//
//
//@Component
//public class EventDubbo implements DubboBase {
//
//    private static final ApplicationContext context = new ClassPathXmlApplicationContext("spring-consumer.xml");
//    private static EventRecordFacade eventRecordFacade = (EventRecordFacade) context.getBean("eventRecordFacade");
//
//
//    @Override
//    public String sendMsg(String jsonString,String method){
//
//   // List<EventRecordRequest> dataArr = JSONArray.parseArray(jsonString,EventRecordRequest.class);
//        EventRecordRequest recordRequest= JSONObject.parseObject(jsonString,EventRecordRequest.class);
//        recordRequest.setRequestId(GuidUtil.newGuid());
//
//        String res=eventRecordFacade.saveEventRecord(recordRequest).toString();
//
//        return res;
//
//    }
//
//
//}
